package com.t.bricks.bussiness.db.entity.msgmanage;

import com.t.bricks.bussiness.db.entity.msgmanage.base.MsgManageBase;

/**
 * 信息管理'MsgManage'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class MsgManage extends MsgManageBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return MsgManage
	 */
	public static MsgManage copy(MsgManage source) {
		if (null == source) {
			return null;
		}
		
		MsgManage target = new MsgManage();
		target.setiId(source.getiId());
		target.setsCreatorName(source.getsCreatorName());
		target.setsTheme(source.getsTheme());
		target.setsContent(source.getsContent());
		target.setsName(source.getsName());
		target.setdTime(source.getdTime());
		target.setsEmail(source.getsEmail());
		target.setdEmailSend(source.getdEmailSend());
		target.setiEmailError(source.getiEmailError());
		target.setsSms(source.getsSms());
		target.setdSmsSend(source.getdSmsSend());
		target.setiSmsError(source.getiSmsError());
		target.setsWeChat(source.getsWeChat());
		target.setdWeChatSend(source.getdWeChatSend());
		target.setiWeChatError(source.getiWeChatError());
		target.setsApp(source.getsApp());
		target.setdAppSend(source.getdAppSend());
		target.setiAppError(source.getiAppError());
		target.setsSystem(source.getsSystem());
		target.setdSystemSend(source.getdSystemSend());
		target.setiSystemError(source.getiSystemError());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return MsgManage
	 */
	@Override
	public MsgManage clone() {
		return copy(this);
	}
	
}
